package com.orange.action;

import com.orange.domain.User;
import com.orange.service.UserService;
import com.orange.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * Created by pengfei on 2016/11/25.
 */
@Controller
@RequestMapping("/frontAction")
public class FrontAction {
    @Autowired
    private UserService userService;
    /**
     * 新用户注册
     */
    @RequestMapping("/register")
    @ResponseBody
    public BizResponse register(final User user){
        return ActionTemplate.execute(new ActionCallback(){
            public void callBack(Map payload) throws Exception {

            }
        });
    }
}
